package com.cy.rpc.consumer;


import com.cy.api.IUserService;
import com.cy.pojo.User;
import com.cy.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 测试类
 */
public class ClientBootStrap {

    public static void main(String[] args) {
        RpcClientProxy proxy = new RpcClientProxy();
        IUserService userService = (IUserService) proxy.createProxy(IUserService.class);
        User user = userService.getById(1);
        System.out.println(user);
    }
}
